jQuery.fn.extend({
    spliterClose: function() {
        var a = $(this);
        a.spliterGetState() && a.find(">div").click();
    },
    spliterOpen: function() {
        var a = $(this);
        a.spliterGetState() || a.find(">div").click();
    },
    spliterGetState: function() {
        var b, c, a = $(this);
        return a.attr("targetId") ? c = a.attr("targetId") : alert(uncompile(quiLanguage.spliter.errorMessage)), 
        b = "none" == $("#" + c)[0].style.display ? !1 : !0;
    },
    spliterChangeState: function() {
        $(this).find(">div").click();
    },
    spliterRender: function() {
        var a, b, c, d, e, f, g, h;
        $(this).empty(), a = $(this), b = "spliterLeft", c = "spliterRight", d = uncompile(quiLanguage.spliter.collapseText), 
        e = uncompile(quiLanguage.spliter.expendText), g = "show", a.attr("beforeClickClass") && (b = a.attr("beforeClickClass")), 
        a.attr("afterClickClass") && (c = a.attr("afterClickClass")), a.attr("beforeClickTip") && (d = a.attr("beforeClickTip")), 
        a.attr("afterClickTip") && (e = a.attr("afterClickTip")), a.attr("targetId") ? f = a.attr("targetId") : alert(uncompile(quiLanguage.spliter.errorMessage)), 
        "hide" == a.attr("init") && (g = "hide"), h = $("<div></div>"), h.addClass(b), h.attr("title", d), 
        a.empty(), a.append(h), a.addClass("ver02"), a.addClass("ali02"), "hide" == g && ($("#" + f).hide(), 
        $("#" + f).attr("trueHeight", 0)), h.toggle(function() {
            "show" == g ? $("#" + f).hide(200, function() {
                $("#" + f).attr("trueHeight", 0), a.trigger("stateChange", "hide");
                try {
                    customHeightSet();
                } catch (b) {}
            }) : $("#" + f).show(0, function() {
                $("#" + f).attr("trueHeight", $("#" + f).height()), a.trigger("stateChange", "show");
                try {
                    customHeightSet();
                } catch (b) {}
            }), $(this).removeClass(b), $(this).addClass(c), $(this).attr("title", e);
        }, function() {
            "show" == g ? $("#" + f).show(0, function() {
                $("#" + f).attr("trueHeight", $("#" + f).height()), a.trigger("stateChange", "show");
                try {
                    customHeightSet();
                } catch (b) {}
            }) : $("#" + f).hide(200, function() {
                $("#" + f).attr("trueHeight", 0), a.trigger("stateChange", "hide");
                try {
                    customHeightSet();
                } catch (b) {}
            }), $(this).removeClass(c), $(this).addClass(b), $(this).attr("title", d);
        });
    }
});